package com.sinosoft.vaccinetoai.server.business.chatrecord.deletechatrecord.controller;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sinosoft.vaccinetoai.server.business.chatrecord.deletechatrecord.io.DeleteChatRecordIO;
import com.sinosoft.vaccinetoai.server.business.chatrecord.deletechatrecord.vo.DeleteChatRecordVO;
import com.sinosoft.vaccinetoai.server.business.chatrecord.deletechatrecord.service.IDeleteChatRecordService;

/**
 * @ClassName: DeleteChatRecordController
 * @ClassNameExplain: 
 * @Description: 删除聊天历史接口
 * @author xiazhihao
 * @date 2023年12月20日 19:41
 */
@RestController("DeleteChatRecordController")
@RequestMapping("/chatRecord")
public class DeleteChatRecordController {
	
	@Autowired
	@Qualifier("DeleteChatRecordService")
	IDeleteChatRecordService deleteChatRecordService;
	
	/**
	 * @Title: deleteChatRecord
	 * @TitleExplain: 
	 * @Description: 删除聊天历史接口方法
	 * @param deleteChatRecordIO 入参
	 * @return DeleteChatRecordVO 返参
	 * @version 1.0.3
	 * @author xiazhihao
	 */
	@PostMapping("/remove")
	public DeleteChatRecordVO deleteChatRecord(@Valid @RequestBody DeleteChatRecordIO deleteChatRecordIO) throws Exception {
		return deleteChatRecordService.deleteChatRecord(deleteChatRecordIO);
	}
	
}
